﻿using System;
namespace LibUpdate
{
    interface IDownFile
    {
        void BeginDown(File file);

        /// <summary>
        /// 验证身份
        /// </summary>
        bool Validate_Identity();

        /// <summary>
        /// 链接服务器
        /// </summary>
        bool ConnetionServer();

        UpdateConfig config { get; set; }


        /// <summary>
        /// 下载状态通知
        /// </summary>
         event FileDownStatusChangedHandler DownStatuesChange;

        /// <summary>
        /// 下载进度通知
        /// </summary>
         event FileDownProgressChangedHandler DownProgressChange;
        Version Version { get; set; }

        /// <summary>
        /// 检查身份标识，是否正版用户
        /// </summary>
        string Identity
        {
            get;
            set;
        }

       
    }
}
